package com.shengqin.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("t_plan_free_test_apply")
public class PlanFreeTestApply {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("性别")
    private String sex;
    @ExcelProperty("学校名称")
    private String schoolName;
    @ExcelProperty("年级编号")
    private String gradeId;
    @ExcelProperty("班级名称")
    private String classesName;
    @ExcelProperty("学籍号")
    private String studyCode;
    @ExcelProperty("项目名称")
    private String projectName;
    @ExcelProperty("原因")
    private String reason;

    private Integer status = 1;

    @ExcelProperty("得分")
    @TableField(exist = false)
    private String scoreText;


    private Integer schoolId;
    private Integer planId;
    private BigDecimal score;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String gradeName;
}
